<footer class="overHidden">
    <div class="sectionOverind2">
        <div class="footer-left rightRight">
            <img src="{$common.img}" alt="图片丢失" />
            <div>官方微信</div>
        </div>
        <div class="footer-right floatLeft">
            <div>装修咨询热线:{$common.phone}</div>
            <div>版权所有:{$common.company}</div>
            <div>备案号:{$common.number}</div>
            <div>技术支持:{$common.support}</div>
        </div>
    </div>
</footer>
<div class="clickTop">
    <div><img src="__STATIC__/home/img/top.png" alt="..." /></div>
    <div>返回顶部</div>
</div>
<script src="__STATIC__/home/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/home/js/swiper.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    $(function() {
        //				轮播
        var swiper = new Swiper('.headerImages .swiper-container', {
            spaceBetween: 30,
            centeredSlides: true,
            autoplay: {
                delay: 2500,
                disableOnInteraction: false,
            },
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            },
        });
        //点击图标回到顶部
        $(".clickTop").hide();
        var winHeight = $(window).height();
        var flag = true;
        $(window).scroll(function() {
            if ($(window).scrollTop() > winHeight) {
                $(".clickTop").fadeIn(400);
            } else {
                $(".clickTop").fadeOut(400);
            }
            if (flag) {
                if ($(document).scrollTop() > 2000) {
                    flag = false;
                    // 数字

                    [].slice.call($('.object-class')).forEach( function(item,index) {
                        var num = $(item).children('input').val();
                        console.log(num)
                        $(item).children('#object-class-' + index).rollNum({
                            deVal: num
                        });
                    });
                }
            }
        });
        //返回顶部
        $(".clickTop").click(function(event) {
            event.preventDefault();
            $('html,body').animate({
                'scrollTop': 0
            }, 500);
            return false;
        });
    });
</script>
</body>

</html>